﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="User_YJ.aspx.cs" Inherits="Admin_shop_User_Detail" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>会员信息</title>
    <link rel="shortcut icon" href="favicon.ico" />

    <link href="../css/bootstrap.min.css" rel="stylesheet" />
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet" />
    <link href="../css/animate.css" rel="stylesheet" />
    <link href="../css/style.css?v=4.1.0" rel="stylesheet" />
    <link href="../css/plugins/footable/footable.core.css" rel="stylesheet" />
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

    <style>
        .grade td {
            display: inline-block;
        }

        .gradeX td img {
            width: 60px;
            height: 60px;
        }

        .grade {
            width: 50%;
            float: left;
            border: 0px solid inherit;
        }
     
        .trorder {
            background: #f8f8f8;
            border: 1px solid #f2f2f2;
            text-align: left;
        }

        .footable-odd {
            background: #fff;
        }

        .trcenter {
            border: 1px solid #f2f2f2;
        }

            .trcenter td {
                border: 1px solid #f2f2f2;
            }

     .goods {
padding:5px;
        }



        .goods dl {
            margin-left: 8px;
            margin-top: 0;
    margin-bottom: 0px;
        }

    </style>
</head>

<body class="gray-bg">
    <form id="form1" runat="server" class="form-horizontal">
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <div class="tabs-container" style="margin-top: 1em;">
                                <ul class="nav nav-tabs">
                                    <li class="active" id="tab1"><a data-toggle="tab" href="#tab11" aria-expanded="true">库存</a> </li>
                                    <li class="" id="tab2"><a data-toggle="tab" href="#tab22" aria-expanded="false">  进货订单 </a> </li>
                                    <li class="" id="tab3"><a data-toggle="tab" href="#tab33" aria-expanded="false">  拨货订单 </a> </li>
                                    <li class="" id="tab4"><a data-toggle="tab" href="#tab44" aria-expanded="false">提货订单</a> </li>
                                </ul>
                                <div class="tab-content">
                                    <div id="tab11" class="tab-pane active">
                                        <div class="panel-body">
                                            <asp:Repeater ID="Repeater1" runat="server">
                                                <HeaderTemplate>
                                                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="20">
                                                        <thead>
                                                            <tr>
                                                                <th align="center">商品</th>
                                                                <th align="center">名称</th>
                                                                <th align="center">数量</th>
                                                        
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <tr class="gradeX">
                                       
                                                        <td><img  src="<%#_rky.getFirstImg(Eval("SPID").ToString())%>" width="50" height="50" /></td>
                                                        <td><%#Eval("Name")%></td>
                                                        <td><font color="red"><%#_rky.getKCByguidGID(guid,Eval("SPID").ToString())%> </font></td>
                                                      
                                                    </tr>
                                                </ItemTemplate>
                                                <FooterTemplate>
                                                    </tbody>
                                                   </table>
                                                </FooterTemplate>
                                            </asp:Repeater>
                                        </div>
                                    </div>

                       <div id="tab22" class="tab-pane"> <%-- //进货 yorder--%>
                                        <div class="panel-body">
                                             <asp:Repeater ID="Repeater2" runat="server" OnItemDataBound="Repeater2_ItemDataBound">
  <HeaderTemplate>

                            <table class="footable table table-striped  toggle-arrow-tiny table-hover" data-page-size="80">
                                        <thead>
                                            <tr>
                                                <th align="center">编号</th>
                                                 <th align="center">提交人</th>
                                                <th align="center">商品名称</th>                                
                                                <th align="center">总价 实付</th>
                                                <th align="center">提交时间</th>
                                                       <th align="center">状态</th>
                                            </tr>
                                          </thead>
                                        <tbody>

                         </HeaderTemplate>
                <ItemTemplate>
 
                                    <tr class="trcenter">
                                        <td> <asp:Label ID="od_id" runat="server" Text='<%#Eval("OrderID")%>'></asp:Label></td>
                                        <td>
                                           <%# _rky.getUnameByguid(Convert.ToString(Eval("UGUID")))%>
                                        </td>                                  
                                         <td>  
                         <asp:Repeater ID="Repeater22" runat="server">
                                    <ItemTemplate>
                                            <span style="width:280px;display:block;float:left">                                             
                                                        <img src="<%#Eval("SPImgUrl")%>" style="float:left;width: 65px; height: 65px; border: 1px solid #ccc; padding: 1px;">
                                                        <span  class="goods" style="float:left">                                                        
                                                        <dl><%#Eval("SPName")%></dl>
                                                        <dl><%#_rky.getUstat(Convert.ToString(Eval("Ustate")))%>价：¥<%#Eval("SPrice")%>×数量： <%#Eval("ONumber")%></dl>
                                                            <dl><b> ¥<%#Eval("OLastPrice")%></b></dl>
                                                        </span> 
                                           </span>
                                     </ItemTemplate>
                                </asp:Repeater>
                                          </td>
                                   
                        <td class="order-summary">
            
                            <b>¥<%#_rky.getSumMoney(Eval("OrderID").ToString(),"YS","1")%></b>
                         
                        </td>

                             <td class="order-toolbar" >
                            <span class="fl"><%#Eval("OCreatTime")%></span>    
                             </td>
 <td class="order-toolbar" >
                            <span class="fl"> <%#methods.getYOrderState(Convert.ToString(Eval("Ostate")))%></span>    
                             </td>


                                       </tr>
                             </ItemTemplate>                     
                                   <FooterTemplate>
                                    </tbody>                           
                                </table>
                                </FooterTemplate>
                         </asp:Repeater>
                                        
                         </div>
                     </div>


                                    
                       <div id="tab33" class="tab-pane ">  <%-- //拨货 yorder--%>
                                        <div class="panel-body">
              

                                              <asp:Repeater ID="Repeater3" runat="server" OnItemDataBound="Repeater3_ItemDataBound">
  <HeaderTemplate>

                            <table class="footable table table-striped  toggle-arrow-tiny table-hover" data-page-size="80">
                                        <thead>
                                            <tr>
                                                <th align="center">编号</th>
                                                 <th align="center">提交人</th>
                                                <th align="center">商品名称</th>                                
                                                <th align="center">总价 实付</th>
                                                <th align="center">提交时间</th>
                                                       <th align="center">状态</th>
                                            </tr>
                                          </thead>
                                        <tbody>

                         </HeaderTemplate>
                <ItemTemplate>
 
                                    <tr class="trcenter">
                                        <td> <asp:Label ID="od_id" runat="server" Text='<%#Eval("OrderID")%>'></asp:Label></td>
                                        <td>
                                           <%# _rky.getUnameByguid(Convert.ToString(Eval("UGUID")))%>
                                        </td>                                  
                                         <td>  
                         <asp:Repeater ID="Repeater33" runat="server">
                                    <ItemTemplate>
                                            <span style="width:280px;display:block;float:left">                                             
                                                        <img src="<%#Eval("SPImgUrl")%>" style="float:left;width: 65px; height: 65px; border: 1px solid #ccc; padding: 1px;">
                                                        <span  class="goods" style="float:left">                                                        
                                                        <dl><%#Eval("SPName")%></dl>
                                                        <dl><%#_rky.getUstat(Convert.ToString(Eval("Ustate")))%>价：¥<%#Eval("SPrice")%>×数量： <%#Eval("ONumber")%></dl>
                                                            <dl><b> ¥<%#Eval("OLastPrice")%></b></dl>
                                                        </span> 
                                           </span>
                                     </ItemTemplate>
                                </asp:Repeater>
                                          </td>
                                   
                        <td class="order-summary">
            
                            <b>¥<%#_rky.getSumMoney(Eval("OrderID").ToString(),"YS","1")%></b>
                         
                        </td>

                             <td class="order-toolbar" >
                            <span class="fl"><%#Eval("OCreatTime")%></span>    
                             </td>
                                         <td class="order-toolbar" >
                           <span class="fl"> <%#methods.getYOrderState(Convert.ToString(Eval("Ostate")))%></span>    
                             </td>

                                       </tr>
                             </ItemTemplate>                     
                                   <FooterTemplate>
                                    </tbody>                           
                                </table>
                                </FooterTemplate>
                         </asp:Repeater>


                                        </div>
                     </div>


                                    
                       <div id="tab44" class="tab-pane ">   <%--提货--%>
                                        <div class="panel-body">
                                                                                          <asp:Repeater ID="Repeater4" runat="server" OnItemDataBound="Repeater4_ItemDataBound">
  <HeaderTemplate>

                            <table class="footable table table-striped  toggle-arrow-tiny table-hover" data-page-size="80">
                                        <thead>
                                            <tr>
                                                <th align="center">编号</th>
                                                 <th align="center">提交人</th>
                                                <th align="center">商品名称</th>                                
                                                <th align="center">地址</th>
                                                <th align="center">提交时间</th>
                                                               <th align="center">状态</th>
                                            </tr>
                                          </thead>
                                        <tbody>

                         </HeaderTemplate>
                <ItemTemplate>
 
                                    <tr class="trcenter">
                                        <td> <asp:Label ID="od_id" runat="server" Text='<%#Eval("OrderID")%>'></asp:Label></td>
                                        <td>
                                          <%#Convert.ToInt32(Eval("OState"))== 0 ? "待付款" : Convert.ToInt32(Eval("OState")) == 1 ? "待发货" :  Convert.ToInt32(Eval("OState")) == 2 ? "待收货" :Convert.ToInt32(Eval("OState")) == 3 ? "待评价" : "已评价"%>
                                        </td>                                  
                                         <td>  
                         <asp:Repeater ID="Repeater44" runat="server">
                                    <ItemTemplate>
                                            <span style="width:280px;display:block;float:left">                                             
                                                        <img src="<%#Eval("SPImgUrl")%>" style="float:left;width: 65px; height: 65px; border: 1px solid #ccc; padding: 1px;">
                                                        <span  class="goods" style="float:left">                                                        
                                                        <dl><%#Eval("SPName")%></dl>
                                                        <dl>数量： <%#Eval("ONumber")%></dl>
                                                         
                                                        </span> 


                                         

                                           </span>
                                     </ItemTemplate>
                                </asp:Repeater>
                                          </td>
                                   
                        <td class="order-summary">
            
                               <%#Eval("OAddress")%>  <%#Eval("Opeople")%>   <%#Eval("OTel")%>
                         
                        </td>

                             <td class="order-toolbar" >
                            <span class="fl"><%#Eval("OCreatTime")%></span>    
                             </td>

                                         <td class="order-toolbar" >
                            <span class="fl"><%#Eval("Ostate")%></span>    


                         <span class="fl"> <%#methods.getSOrderState(Convert.ToString(Eval("Ostate")))%></span>    
                             </td>

                                       </tr>
                             </ItemTemplate>                     
                                   <FooterTemplate>
                                    </tbody>                           
                                </table>
                                </FooterTemplate>
                         </asp:Repeater>




                                        </div>
                     </div>


                        
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
    </form>
</body>
</html>
